-- GENERATED SPELL FOR [Conjured Elemental] --


function spell0_17167(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(37054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17167', 2500, 1)
end

function Sorts_17167(pUnit, Event)
local choix_sorts_17167 = math.random(0, 0)
if choix_sorts_17167 == 0 then
pUnit:RegisterEvent('spell0_17167', 1, 1)
end
end

function mob17167_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17167', math.random(1500, 3000), 1)
end

function mob17167_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17167_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17167_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17167, 1, 'mob17167_Action')
RegisterUnitEvent(17167, 2, 'mob17167_Leave')
RegisterUnitEvent(17167, 3, 'mob17167_Kill')
RegisterUnitEvent(17167, 4, 'mob17167_Die')
